package test.sup.after;

/**
 * @name 菠菜
 * @date 2024-09-01 15:51
 */
public class Animal extends liner{
//    public final class Animal extends liner
    protected String name;
    protected int age;

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void sleep(){
        System.out.println("闭着眼睛睡觉");
    }
}
